package com.istudy.service.interfaces;

import com.istudy.entity.Comment;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 评论列表逻辑层
 *
 * @author xdd
 * @create 2020-08-24 14:23
 */
public interface CommentService {

    /**
     * 获取用户对应的评论
     * @return
     */
    List<Comment> selectCommentinformation();
    /**
     * 获取视频对应的评论
     * @return
     */
    List<Comment> getCommentByVideo(HttpServletRequest request,int num);

    /**
     * 获取用户对应的评论
     * @return
     */
    List<Comment> getCommentByUser(HttpServletRequest request, int num);
    /**
     * 新增评论
     * @return
     */
    boolean insertComment(Comment comment);
    /**
     * 删除评论
     * @return
     */
    boolean delComment(HttpServletRequest request);
}
